<?php
ob_start();
require('./module/config.php');

function verify_page(){
	if(isset($_SESSION[sess_login])){
		$name = $_SESSION[sess_login]['username'];
		include('./module/connect.php');
		$sql = 'SELECT * FROM `user_account` WHERE `username` = "'.$name.'"';
		$result = mysql_query($sql,$conn)or die("ERROR LIB: #01");//SQL Command
		$query_num = mysql_num_rows($result);
		if($query_num==1){	
			return true;
		}
		else{
			return false;
		}
		mysql_free_result($result);
		mysql_close($conn);
	}
	else{
		return false;
	}
}
ob_end_flush();
?>